﻿
@{
    ViewBag.Title = "专家诊室";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        $('#myTab a:first').tab('show');
        $("#expertList").treeview({
            height: 400,
            slimscroll: false,
            showcheck: true,
            url: "/Consult/GetExpertListByDept",
            param: { ksCode: keyValue }
        });
    });
    function CreateExpertConsult() {
        //var postData = {};
        //postData["expertList"] = String($("#expertList").getCheckedNodes());
        var expert = String($("#expertList").getCheckedNodes());
        $.submitForm({
            url: "/Consult/CreateExpertConsult?expert="+expert+"&ksCode=" + keyValue,
            param: expert,
            success: function () {
                //$.currentWindow().$("#gridList").trigger("reloadGrid");
                $.currentWindow().$("#gridmxList").resetSelection();
                $.currentWindow().$("#gridmxList").trigger("reloadGrid");
            }
        })
    }
</script>
<form id="formward">
    <div role="tabpanel" class="tab-pane fade in" style="padding-top: 20px; margin-right: 30px;" id="expertConsult">
        <div id="expertList"></div>
    </div>
</form>


